#ifndef TRR_H_
#define TRR_H_
#include "MergingSegment.h"
#include "Point.h"
#include "Edge.h"

namespace Cxuh{

class TRR
{
public:
	TRR(Cxuh::MergingSegment *ms, int e1);
	Edge merge(const TRR& trr2) const; // merge two TRRs
	~TRR(void);
private:
	Cxuh::MergingSegment *core;
	int radius; // distance between the core(ms) to the edge
	Point<int> top, bottom, left, right;
	Edge e_tl, e_tr, e_bl, e_br; // edges connecting top and left, top and right, etc.
};

}
#endif //TRR_H_
